<table class="table table-bordered table-striped table-hover">
	<tr><th colspan="10">{{ $year }}年零售目标台数</th></tr>
    <tr>
		<th>大区</th>
		<th>QS71W</th>
		<th>安芯</th>
		<th>零冷水</th>
		<th>双安芯</th>
		<th>洗碗机</th>
		<th>油烟机</th>
		<th>蒸烤箱</th>
		<th>星厨/御厨</th>
		<th>Q85L</th>
    </tr>
  @forelse($report_region_key_product->sales_regions as $region)
	<tr>
		<td>{{ $region->code_desc }}</td>
		<td>{{ $region->getTargetById(1) }}</td>
		<td>{{ $region->getTargetById(2) }}</td>
		<td>{{ $region->getTargetById(3) }}</td>
		<td>{{ $region->getTargetById(4) }}</td>
		<td>{{ $region->getTargetById(5) }}</td>
		<td>{{ $region->getTargetById(7) }}</td>
		<td>{{ $region->getTargetById(9) }}</td>
		<td>{{ $region->getTargetById(6) }}</td>
		<td>{{ $region->getTargetById(10) }}</td>
	</tr>
  @empty
  	<tr><td>暂无数据</td></tr>
  @endforelse
	<tr>
		<th>合计</th>
		<th>{{ $report_region_key_product->getTotalTargetById(1) }}</th>
		<th>{{ $report_region_key_product->getTotalTargetById(2) }}</th>
		<th>{{ $report_region_key_product->getTotalTargetById(3) }}</th>
		<th>{{ $report_region_key_product->getTotalTargetById(4) }}</th>
		<th>{{ $report_region_key_product->getTotalTargetById(5) }}</th>
		<th>{{ $report_region_key_product->getTotalTargetById(7) }}</th>
		<th>{{ $report_region_key_product->getTotalTargetById(9) }}</th>
		<th>{{ $report_region_key_product->getTotalTargetById(6) }}</th>
		<th>{{ $report_region_key_product->getTotalTargetById(10) }}</th>
	</tr>
</table>

<div class="clearfix"></div>
<hr>

<table class="table table-bordered table-striped table-hover">
	<tr><th colspan="10">{{ $year }}年当年累计实际零售台数</th></tr>
    <tr>
		<th>大区</th>
		<th>QS71W</th>
		<th>安芯</th>
		<th>零冷水</th>
		<th>双安芯</th>
		<th>洗碗机</th>
		<th>油烟机</th>
		<th>蒸烤箱</th>
		<th>星厨/御厨</th>
		<th>Q85L</th>
    </tr>
  @forelse($report_region_key_product->sales_regions as $region)
	<tr>
		<td>{{ $region->code_desc }}</td>
		<td>{{ $region->getRealById(1) }}</td>
		<td>{{ $region->getRealById(2) }}</td>
		<td>{{ $region->getRealById(3) }}</td>
		<td>{{ $region->getRealById(4) }}</td>
		<td>{{ $region->getRealById(5) }}</td>
		<td>{{ $region->getRealById(7) }}</td>
		<td>{{ $region->getRealById(9) }}</td>
		<td>{{ $region->getRealById(6) }}</td>
		<td>{{ $region->getRealById(10) }}</td>
	</tr>
  @empty
  	<tr><td>暂无数据</td></tr>
  @endforelse
	<tr>
		<th>合计</th>
		<th>{{ $report_region_key_product->getTotalRealById(1) }}</th>
		<th>{{ $report_region_key_product->getTotalRealById(2) }}</th>
		<th>{{ $report_region_key_product->getTotalRealById(3) }}</th>
		<th>{{ $report_region_key_product->getTotalRealById(4) }}</th>
		<th>{{ $report_region_key_product->getTotalRealById(5) }}</th>
		<th>{{ $report_region_key_product->getTotalRealById(7) }}</th>
		<th>{{ $report_region_key_product->getTotalRealById(9) }}</th>
		<th>{{ $report_region_key_product->getTotalRealById(6) }}</th>
		<th>{{ $report_region_key_product->getTotalRealById(10) }}</th>
	</tr>
</table>

<div class="clearfix"></div>
<hr>

<table class="table table-bordered table-striped table-hover">
	<tr><th colspan="10">{{ $year }}年当年累计完成进度</th></tr>
    <tr>
		<th>大区</th>
		<th>QS71W</th>
		<th>安芯</th>
		<th>零冷水</th>
		<th>双安芯</th>
		<th>洗碗机</th>
		<th>油烟机</th>
		<th>蒸烤箱</th>
		<th>星厨/御厨</th>
		<th>Q85L</th>
    </tr>
  @forelse($report_region_key_product->sales_regions as $region)
	<tr>
		<td>{{ $region->code_desc }}</td>
		<td>{{ round_percent($region->getProgressById(1)) }}</td>
		<td>{{ round_percent($region->getProgressById(2)) }}</td>
		<td>{{ round_percent($region->getProgressById(3)) }}</td>
		<td>{{ round_percent($region->getProgressById(4)) }}</td>
		<td>{{ round_percent($region->getProgressById(5)) }}</td>
		<td>{{ round_percent($region->getProgressById(7)) }}</td>
		<td>{{ round_percent($region->getProgressById(9)) }}</td>
		<td>{{ round_percent($region->getProgressById(6)) }}</td>
		<td>{{ round_percent($region->getProgressById(10)) }}</td>
	</tr>
  @empty
  	<tr><td>暂无数据</td></tr>
  @endforelse
	<tr>
		<th>合计</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(1)) }}</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(2)) }}</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(3)) }}</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(4)) }}</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(5)) }}</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(7)) }}</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(9)) }}</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(6)) }}</th>
		<th>{{ round_percent($report_region_key_product->getTotalProgressById(10)) }}</th>
	</tr>
</table>